/*
 * Enviroment.fx
 *
 * Created on Feb 23, 2010, 8:48:26 PM
 */
package com.gpsbuddy.main;

import javafx.scene.text.Font;
import com.gpsbuddy.services.User;
import com.gpsbuddy.utils.ServiceUtils;

/**
 * @author jonycus
 */
public class Enviroment {

    public-init  var screenWidth: Integer;
    public-init  var screenHeight: Integer;
}
public  var statusText: String   ="Loading...";
public var connected: Boolean = false on replace {
            println("E sega sum smenet!")
        };
public var font12 = Font.font("Verdana", 12);
public var loggedUser: User on replace {
            if (loggedUser != null) {
                println("getting requests for user {loggedUser}");
                ServiceUtils.getFriendRequests(loggedUser);
                ServiceUtils.getFriends(loggedUser);
            }
        }

